const router = require('express').Router();
const { userLogin, userRegister, userInfo, SerchUser, UpdataUser, UpdateSignature, sendEmailCode, checkEmailCode, resetPassword, checkEmailExists } = require("../../controller/http/user.js");


router.post("/login", userLogin)
router.post("/register", userRegister)
router.post("/serchuser", SerchUser)
router.get("/userinfo", userInfo)
router.post("/updatauser", UpdataUser)
router.post("/updatesignature", UpdateSignature)
// 邮箱验证码相关路由
router.post("/sendEmailCode", sendEmailCode)
router.post("/checkEmailCode", checkEmailCode)
// 重置密码路由
router.post("/resetPassword", resetPassword)
// 检查邮箱是否存在
router.post("/checkEmailExists", checkEmailExists)
module.exports = router;